//
//  TempViewController.swift
//  WeiBo_test
//
//  Created by 张leslie45 on 16/1/23.
//  Copyright © 2016年 张leslie45. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {
    
    @objc private func push(){
       let temp = TempViewController()
       navigationController?.pushViewController(temp, animated: true)
    }
    
    @objc private func back(){
       navigationController?.popViewControllerAnimated(true)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        //手写代码的视图控制器的背景颜色是clearColor
        view.backgroundColor = UIColor.whiteColor()
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", style: .Plain, target: self, action: "push")
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
  
}
